package client.control;

import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.control.Button;
import javafx.scene.text.Text;
import javafx.fxml.FXML;
import javafx.event.ActionEvent;
import client.client;

public class SetController {
	@FXML TextField hostField;
	@FXML Button setBtn;

	@FXML public void set(ActionEvent event){
		c.attemptToConnect(hostField.getText());
	}

	client c;

	public void setC(client c){
		this.c = c;
	}

	public void itsOKnow(){
		setBtn.getScene().getWindow().hide();
	}
}